﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace NpcFramework.Traffic
{
    [System.Serializable]
    public class CarWheelsTransform
    {
        public Transform frontRight;
        public Transform frontLeft;

        public Transform backRight;
        public Transform backLeft;

        public Transform backRight2;
        public Transform backLeft2;
    }

    [System.Serializable]
    public class CarSetting
    {
        public bool showNormalGizmos;

        public Transform carSteer;

        [Range(10000, 60000)] public float springs = 25000.0f;

        [Range(1000, 6000)] public float dampers = 1500.0f;

        [Range(60, 200)] public float carPower = 120f;

        [Range(1000, 20000)] public float brakeFactor = 12000f;
        [Range(5, 100)] public float brakePower = 8f; // 刹车强度

        [Range(0.1f,12f)] public float speedFactor = 3.6f;

        [Range(20, 100)] public float limitSpeed = 30.0f;

        [Range(30, 72)] public float maxSteerAngle = 40.0f;
    }
}
